import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router';
import headsearch from"components/headsearch/headsearch"
import login from"components/login/login"
import cart from"components/cart/cart"
/* eslint-disable no-new */


Vue.use(VueRouter);


const routes = [
				 {
				  path: '/headsearch',
				  component: headsearch
				},
				{
				  path: '/login',
				  component: login
				}, 
				{
				  path: '/cart',
				  component: cart
				}, 
				];

const router = new VueRouter({
  linkActiveClass: 'active',
  routes:routes
});
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App },
});
export default router;
window.confirm = function (message) {
   var iframe = document.createElement("IFRAME");
   iframe.style.display = "none";
   iframe.setAttribute("src", 'data:text/plain,');
   document.documentElement.appendChild(iframe);
   var alertFrame = window.frames[0];
   var result = alertFrame.window.confirm(message);
   iframe.parentNode.removeChild(iframe);
   return result;
 };